<template>
  <div>
    <van-tabbar route>
      <van-tabbar-item icon="home-o" to="/ground">广场</van-tabbar-item>
      <van-tabbar-item icon="search" to="/search">搜索</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/owner">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import { ref } from "vue";
import { mapState, mapMutations } from "vuex";
export default {
  methods: {
    ...mapMutations(["changeBarIndex"]),
    // pushTo: function (path) {
    //   // console.log(this.active);
    //   // this.changeBarIndex(this.active);
    //   this.$router.push(path);
    // },
  },
  computed: {
    ...mapState(["barIndex"]),
  }
};
</script>

<style></style>
